#include "processbar.h"

void Processbar1()
{
    char str[NUM];
    char* lable = "-\\|/";
    int len = strlen(lable);
    memset(str, 0, sizeof(str));

    int cnt = 0;
    while (cnt <= 100)
    {
        str[cnt] = STYLE;
        printf("[%-100s][%d][%c]\r", str, cnt, lable[cnt % len]);
        fflush(stdout);
        usleep(50000);

        ++cnt;
    }

    printf("\n");
}
